package com.sky.controller.admin;

import com.sky.dto.DishPageQueryDTO;
import com.sky.result.PageResult;
import com.sky.result.Result;
import com.sky.service.admin.DishService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description TODO
 * @Author sheng
 * @Date 2025/8/23 20:44
 */
@RestController
@RequestMapping("/admin/dish")
public class DishController {
    @Autowired
    private DishService dishService;
    /**
     * 新增菜品
     */


    /**
     * 分页查询菜品
     */
    @GetMapping("/page")
    public Result<PageResult> pageQuery(DishPageQueryDTO dto){
        PageResult result = dishService.page(dto);
        return Result.success(result);
    }
}
